package com.taiji.dianthus.service.sms;

import com.taiji.dianthus.common.BusinessMessage;
import com.taiji.dianthus.domain.sms.SmsInfo;

import java.util.Date;
import java.util.List;

/**
 * @InterfaceName SmsInfoService
 * @Description
 * @Author H.M
 * @Date 2020/7/15
 */
public interface SmsInfoService {

    /**
     * 保存方法
     *
     * @param smsInfo
     */
    BusinessMessage save(SmsInfo smsInfo);

    BusinessMessage draftsList(Integer currentPage, Integer pageSize, Date start, Date end, String id,Integer msgLoc);

    BusinessMessage deleteDrafts(String id);

    SmsInfo getOne(String id);


    BusinessMessage updateMsgLoc(String id, Integer status);

    List<SmsInfo> getTaskMsgByTime(Date time);

    BusinessMessage editTaskTime(String id, String msgTime);

    BusinessMessage sendDSMS(SmsInfo smsInfo);

    void updateStatusByGroup(String msgGroup, Integer status);

    SmsInfo getOneByMsgGroup(String msgGroup);

    List<SmsInfo> getAllByStatus(int i);

    void updateMsgStatusById(String id, int i);

    String getSmsInfoIdByMobile(String addSerial);


    List<SmsInfo> getAllByTime(Date start,Date end, int i);



    void updateRetryCount1(String id, int i, String smsGroup);

    void updateRetryCount2(String id, int i, String smsGroup);
}
